home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / TUTORIAL.BIN / ProxyObject.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-01-30  |  1.9 KB  |  53 lines

  1. package symantec.itools.db.jdbc;
  2.  
  3. import java.util.Vector;
  4. import symantec.itools.db.net.ClientSession;
  5. import symantec.itools.db.net.RemoteObject;
  6. import symjava.sql.SQLException;
  7.  
  8. class ProxyObject {
  9.    private RemoteObject proxy;
  10.    private ClientSession session;
  11.  
  12.    ProxyObject(String className, int id, ClientSession session) {
  13.       this.proxy = new RemoteObject(className, id, session);
  14.       this.session = session;
  15.    }
  16.  
  17.    ClientSession getSession() {
  18.       return this.session;
  19.    }
  20.  
  21.    synchronized int invokeConstructor(int ctor_sel, Vector params) throws SQLException {
  22.       return this.proxy.invokeConstructor(ctor_sel, params);
  23.    }
  24.  
  25.    Vector invokeMethod(int mid) throws SQLException {
  26.       return this.proxy.invokeMethod(mid);
  27.    }
  28.  
  29.    Vector invokeMethod(int mid, int data) throws SQLException {
  30.       return this.proxy.invokeMethod(mid, data);
  31.    }
  32.  
  33.    Vector invokeMethod(int mid, String data) throws SQLException {
  34.       return this.proxy.invokeMethod(mid, data);
  35.    }
  36.  
  37.    Vector invokeMethod(int mid, boolean data) throws SQLException {
  38.       return this.proxy.invokeMethod(mid, data);
  39.    }
  40.  
  41.    synchronized Vector invokeMethod(int mid, Vector params) throws SQLException {
  42.       return this.proxy.invokeMethod(mid, params);
  43.    }
  44.  
  45.    synchronized void invokeDestructor(int oid) throws SQLException {
  46.       this.proxy.invokeDestructor(oid);
  47.    }
  48.  
  49.    synchronized void disable() {
  50.       this.proxy.disable();
  51.    }
  52. }
  53.